<?php
class AdminAppController extends AppController
{

    public $layout = 'admin';

    public $components = array(

        'Auth' => array(
            'loginAction' => array(
                'controller' => 'users',
                'action' => 'login',
                'plugin' => 'admin'
            ),
            'authError' => 'Did you really think you are allowed to see that?',
            'loginRedirect' => array('controller' => 'dashboard', 'action' => 'index'),
            'logoutRedirect' => '/'

        )
    );

}
